package st.business.tepth.business.visitor.visitorwork;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.BusRepairBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * @author zhangyu
 * @date 2019/3/5
 */
public interface VisitorWorkContract {
    interface View extends BaseView {
        void showBusInfo(BusRepairBean visitorRepairBean);
    }

    interface Model extends BaseModel {
        Disposable getBusInfo(int id,
                                   OnDataConvertListener<BusRepairBean> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getBusInfo(int id);
    }
}
